#include<stdio.h>
#include<sqlite3.h>
int main(int argc,char **argv)
{
    if(argc!=2)
    {
        printf("please input db name\n");
        return 1;
    }
    sqlite3 * db;
    int ret=sqlite3_open(argv[1],&db);

    if(ret!=SQLITE_OK)
    {
        printf("sqlite3_open error%s",sqlite3_errmsg(db));
        return 1;
    }
    printf("sqlite open db successful!\n");

    sqlite3_close(db);
    return 0;
}